﻿
Ext.onReady(function () {
    CreateFramework();
});

function CreateFramework() {
    try {
        Ext.create('Ext.Viewport', {
            layout: {
                type: "border",
                padding: 0
            },
            defaults: {
                split: true
            },
            items: [{
                region: 'center',
                collapsible: true,
                title: 'Starts at width 30%',
                split: true,
                width: '30%',
                minWidth: 100,
                minHeight: 140,
                html: 'west<br>I am floatable'
            }, {
                region:"north",
                collapsible:true,
                title:"标题",
                html:"dddfd订单"
            }]
        });
    } catch (e) {
        alert(e.message);
    }
};